#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int a, j, i, c;
    while (scanf("%d", &a) != EOF)
    {
        for (i = 1; i <= 2 * a + 1; i++)
        {
            j = (a - i)+1;
            while (j >= 0)
            {
                printf("* ");
                j--;
            }
            if (i > a + 1)
            {
                for (c = 0; c < (i - a) ; c++)
                    printf("* ");

            }
            printf("\n");
        }
    }
    return 0;
}